package com.csun.dsms.mapper;

import com.csun.dsms.model.domain.DsmsAreaUnit;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DsmsAreaUnitMapper extends Mapper<DsmsAreaUnit> {

    void areaUnitSave(List<DsmsAreaUnit> dsmsAreaUnits);

    void deleteAreaUnit(Long id);

    /**
     * 根据片区id查询所有单位id
     *
     * @param areaId    the area id
     *
     * @return  the unit id list.
     */
    List<Long> selectUnitIdListByAreaId(Long areaId);
}